package com.lyf.boot.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Luyufan
 * @date 2023/7/3 14:03
 */
@Data
@ConfigurationProperties(prefix = "auth")
public class AuthProperties {

    /**
     * 是否开启
     */
    private boolean enabled;

    /**
     * 加解密key
     */
    private String encryptKey;

    /**
     * api鉴权白名单
     */
    private List<String> apiWhiteList;

    /**
     * 签名白名单
     */
    private List<String> signWhiteList;

    /**
     * 免校验登录账号
     */
    private List<String> noLoginList;
}
